ArcGIS API for Windows Phone - Library Reference
RelationAsync(IList<Graphic>,IList<Graphic>,GeometryRelation,String,Object) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Tasks Namespace > GeometryService Class > RelationAsync Method : RelationAsync(IList<Graphic>,IList<Graphic>,GeometryRelation,String,Object) Method

graphics1
The first set of graphics in the comparison.
graphics2
The second set of graphics in the comparison.
spatialRelationship
The spatial relationship to be tested between the two sets of geometries. If GeometryRelation.esriGeometryRelationRelation is specified, then the comparisonString parameter must be specified.
comparisonString
The 'Shape Comparison Language' string to be evaluated. Strings such as RELATE(G1, G2, "FFFTTT***") are accepted, in addition to other kinds of strings. This string describes the spatial relationship to be tested when the spatialRelationship parameter is specified as esriGeometryRelationRelation.
userToken
A user-defined object that is passed to the method invoked.
Computes the set of pairs of geometries from graphics1 and graphics2 that belong to the specified relation. Both arrays are assumed to be in the same spatial reference. The relations are evaluated in 2D. Z coordinates are not used. Geometry types cannot be mixed within an array. Note that if the spatialRelationship is specified as esriGeometryRelationRelation, the relationParam parameter describes the spatial relationship and must be specified. Raises the RelationCompleted event on success, or the TaskBase.Failed event on failure.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub RelationAsync( _
   ByVal graphics1 As IList(Of Graphic), _
   ByVal graphics2 As IList(Of Graphic), _
   ByVal spatialRelationship As GeometryRelation, _
   ByVal comparisonString As String, _
   ByVal userToken As Object _
) 

Parameters

graphics1
The first set of graphics in the comparison.
graphics2
The second set of graphics in the comparison.
spatialRelationship
The spatial relationship to be tested between the two sets of geometries. If GeometryRelation.esriGeometryRelationRelation is specified, then the comparisonString parameter must be specified.
comparisonString
The 'Shape Comparison Language' string to be evaluated. Strings such as RELATE(G1, G2, "FFFTTT***") are accepted, in addition to other kinds of strings. This string describes the spatial relationship to be tested when the spatialRelationship parameter is specified as esriGeometryRelationRelation.
userToken
A user-defined object that is passed to the method invoked.

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.